package OOday01;

public class ExtendsTest1 {
    public static void main(String[] args) {
        Student1 yss = new Student1();
        yss.name="闫少帅";
        yss.age=22;
        yss.address="石家庄";
        yss.className="jsd2507";
        yss.stuId = "22333";
        yss.study();
        yss.eat();
        yss.sayhi();
        yss.sleep();

        Student1 ys =new Student1("颜色",20,"河北","jsd2508","22333");
        ys.sleep();
        ys.sayhi();
        ys.eat();
        ys.study();

        Teacher1 ll = new Teacher1("李磊",45,"河南",6000);
        ll.eat();
        ll.sayhi();
        ll.sleep();
        ll.teach();

        Doctor1 wg = new Doctor1("王刚",50,"山东","主任");
        wg.eat();
        wg.sayhi();
        wg.sleep();
        wg.cut();


    }
}
